Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODDraft


ChangedFromPrev

Document Shell

The ChangedFromPrev method returns a Boolean value that indicates whether this draft contains any changes from the previous draft.

ODBoolean ChangedFromPrev ();
return value
kODTrue if this draft contains any changes from the previous draft, otherwise kODFalse.
DISCUSSION
The document shell or container application calls this method to see whether this draft contains changes from the previous draft; if so, the draft must be notified so that it can save these changes. If this draft contains no changes since it was last saved, it is said to be clean and this method returns false; if it contains changes, it is said to be dirty and this method returns true.

You can call the SetChangedFromPrev method when your part's content has changed; this marks the draft as dirty so that content changes will be saved.

Note that a draft cannot be marked clean after it has been marked dirty. However, you can call the RemoveChanges method to remove all the changes from this draft.

SEE ALSO
The ODDraft::RemoveChanges method (page 176).
The ODDraft::SetChangedFromPrev method (page 184).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help